<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Мои друзья</title>
</head>
<body>
	<table>
		<tr>
			<th>Имя</th>
			<th>Год рождения</th>
		</tr>
		<?php foreach($aFriend as $oFriend) : ?>
		<tr>
			<td>
				<a href="index.php?key=<?php echo $oFriend->getKey() ?>">
					<?php echo $oFriend->getName() ?>
				</a>
			</td>
			<td><?php echo $oFriend->getYearOfBirth() ?></td>
		</tr>
		<?php endforeach ?>
	</table>
</body>
</html>